import type { App } from 'vue'

export function auth(app: App) {
  // 权限验证
  app.directive('auth', {
    mounted(el, binding) {
      // const userStore = useUserStore()

      // if (!userStore.authorityList.some((v: string) => v === binding.value)) {
      //   el.parentNode.removeChild(el)
      // }
    }
  })
}
